/*轮播组件*/
import React from 'react';
import {Carousel} from 'antd';

export default class ComponentCarousel extends React.Component {
    render() {
        // 轮播图设置参数
        const settings = {
            // 	是否显示面板指示点
            dots: true,
            infinite: true,
            speed: 500,
            slidesToShow: 1,
            // 是否自动播放
            autoplay: true
        };
        return (
            <Carousel {...settings}>
                <div><img src="./src/images/carousel_1.jpg"/></div>
                <div><img src="./src/images/carousel_2.jpg"/></div>
                <div><img src="./src/images/carousel_3.jpg"/></div>
                <div><img src="./src/images/carousel_4.jpg"/></div>
            </Carousel>
        )
    }
};